#include "PrimitiveStream.hpp"

using namespace ModuleEMapData;

StreamError::StreamError( int _id )
{
  if( _id >= 0 && _id < ERROR_MAX )
    {
      error_id = _id;
    }
  else
    {
      error_id = ERROR_MAX;
    }
}

const char* StreamError::error_info[ ERROR_MAX+1 ] = 
  {
    "this file's format unlike mif file!\n",
    "EOF accur and please do not fetch more!\n",
    "UNVALID ERROR_ID now!!!\n"
  };
